From: cl349@firebug.cl.cam.ac.uk Date: Fri, 16 Sep 2005 20:03:57 +0000 (+0000) Subject: Move dom0 setup code out of initial_refresh. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16780^2~56 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9b707eca604a4d5ed39013c22e2e7915c1251e11;p=xen.git Move dom0 setup code out of initial_refresh. Signed-off-by: Christian Limpach --- diff --git a/tools/python/xen/xend/XendDomain.py b/tools/python/xen/xend/XendDomain.py index 28834b672d..3e91bb42a4 100644 --- a/tools/python/xen/xend/XendDomain.py +++ b/tools/python/xen/xend/XendDomain.py @@ -68,6 +68,7 @@ class XendDomain: self.dbmap = DBMap(db=XenNode("/domain")) self.watchReleaseDomain() self.initial_refresh() + self.dom0_setup() def list(self): """Get list of domain objects. @@ -151,6 +152,7 @@ class XendDomain: self._delete_domain(domid) self.refresh(cleanup=True) + def dom0_setup(): dom0 = self.domain_lookup(0) if not dom0: dom0 = self.domain_unknown(0)